<?php

class m141005_132007_tbl_menus extends CDbMigration
{
	public function up()
	{
		$this->createTable('tbl_menus', array(
            'id' => 'pk',
            'name' => 'string NOT NULL',
            'url' => 'string NOT NULL',
            'status' => 'text NOT NULL',
            'order_view' => 'int default 0',
            'parrent_id' => 'int default 0',
        ));
	}

	public function down()
	{
		$this->dropTable('tbl_menus');
	}


	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}